package bit.field;

/**
 * 位域
 * Bit Field enumeration constants  - obsolete !
 */
public class Text {
    // 1
    public static final int STYLE_BOLD = 1 << 0;
    // 2
    public static final int STYLE_UNDERLINE = 1 << 2;
    // 4
    public static final int STYLE_ITALIC = 1 << 1;
    // 8
    public static final int STYLE_STRIKETHROUGH = 1 << 3;

    public void applayStyles(int styles) {
        System.out.println(styles);
    }
}
